package com.yonyou.service.extend;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yonyou.domain.Department;
import com.yonyou.domain.ResponseEntity;
import com.yonyou.domain.User;
import com.yonyou.domain.UserId;
 
/**
 * 获取用户相关信息的接口类
 * 
 * @author shenjzh
 */
@FeignClient(name = "userservice")
public interface UserServiceInterfaceClient {

	@RequestMapping(value="/user/{userId}/getuserbyid")
	public ResponseEntity<User> findUserById(@PathVariable("userId") String userId);

	@RequestMapping(value="/user/{mid}/getuserbymid",produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
	public ResponseEntity<List<UserId>> findUserByMeeting(@PathVariable("mid") String mid);

	@RequestMapping(value="/dep/{mid}/get",produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
	public ResponseEntity<List<Department>> findDeptByMeeting(@PathVariable("mid") String mid);
	
	@RequestMapping(value="/user/{mid}/{dep}/getuserbydep",produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
	public ResponseEntity<List<User>> findUserByDept(@PathVariable("mid")String mid,@PathVariable("dep")String dep);
	
	

}